<?php
//http://collect1.longsunhd.com/pbl/getparsetimgs.php
include("../config.php");
include("../myzhuaqu.php");
if(trim($_POST['html'])!=""&&trim($_POST['html'])!="代码粘贴区"){
    insertupdate("`user_parset`",array('html'=>$_POST['html'],'uid'=>$_POST['uid']),"select id from `user_parset` where uid='{$_POST['uid']}'");
}else {
    $nr = getone("select html from user_parset where uid=1");
    preg_match_all("/<img[^<>]+src=\"([^<>]*)\"/Uisx", $nr, $nn);
    $urls = $nn[1];
    echo "<main style='display: '>";
    foreach ($urls as $k => $v) {
        echo "<img src=\"{$v}\"/>\r\n<br>无标题\r\n<p>";
    }
    echo "</main>";
}
exit(0);